<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;

class TransactionDataToExtend extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $field='id, medical_history, disease_desc, remark, disease_data, visit_data, swt, created_at, updated_at';
        DB::statement("insert into ca__customer_extends ($field) SELECT $field FROM ca__customers");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {

    }
}
